﻿using Hotel_Project.Bean;
using Hotel_Project.Tools.MessageBoxShow;
using Hotel_Project.Tools.MySqlData_Helps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hotel_Project.BIZ
{
    /// <summary>
    /// 用户表操作
    /// </summary>
    internal class UserManageAction
    {
        public UserManageAction() { }
        public void add(string sql)
        {
            int count=ExecuteMySql.MySql(MySqlString.MYSQL_CONNAND,sql);
            if (count==-1)
            {
                WarShow.Show("用户编号重复了","消息");
            }
        }
        public void remove(string sql)
        {
            int count= ExecuteMySql.MySql(MySqlString.MYSQL_CONNAND, sql);
            if (count==-1)
            {
                WarShow.Show("用户编号不存在","消息");
            }
        }
        public void select(string sql)
        {
            int count = ExecuteMySql.MySql(MySqlString.MYSQL_CONNAND, sql);
            if (count == -1)
            {
                WarShow.Show("用户编号不存在", "消息");
            }
        }
    }
}
